<?php

class Control_timepicker extends QUI_Control_Abstract
{
    function render()
    {
        $id = $this->id();
        $value = $this->get('value', '');

        //$out = Q::control('memo', $this->id(), array('value'=>$value,'style'=>'width:80%;'))->render();

        $out = <<<EOT
        <input type="text" id="$this->id" name="$this->id" title="选择时间" qform_group_id="" class=" dfinput" placeholder="$value">
        <script type="text/javascript">
        $('#$this->id').datePicker();
        // $('#$this->id').datetimepicker({
            
        //     format: 'Y/m/d H:i',
        //     formatTime: 'H:i', 
        //     formatDate: 'Y/m/d'
        //     });
        </script>
  

EOT;

        return $out;
    }
}


